net-utils system-type trivia.
authorGlenn Morris <rgm@gnu.org>
Wed, 10 Nov 2010 04:13:21 +0000 (20:13 -0800)
committerGlenn Morris <rgm@gnu.org>
Wed, 10 Nov 2010 04:13:21 +0000 (20:13 -0800)
* lisp/net/net-utils.el (net-utils-remove-ctl-m): Use memq for system-types.
(ping-program-options): Remove non-existent `linux' system-type.

lisp/ChangeLog
lisp/net/net-utils.el

index 6cbb75c6e7ff1ac07d01f0b1f0bf4e9eb169b00a..6d67f42cd3a686aa9415057c0e88f93811166ba2 100644 (file)
@@ -1,5 +1,8 @@
 2010-11-10  Glenn Morris  <rgm@gnu.org>
 
+       * net/net-utils.el (net-utils-remove-ctl-m): Use memq for system-types.
+       (ping-program-options): Remove non-existent `linux' system-type.
+
        * startup.el (package-initialize): Update declaration.
 
        * textmodes/remember.el (remember-time-to-seconds): Remove.
index b69c571ddf54727adbd12354fe2b5ecdaa682db1..60829f300b5de89b2989e7cdf6e8f4c0d3f80e33 100644 (file)
@@ -55,8 +55,7 @@
   :group 'comm
   :version "20.3")
 
-(defcustom net-utils-remove-ctl-m
-  (member system-type (list 'windows-nt 'msdos))
+(defcustom net-utils-remove-ctl-m (memq system-type '(windows-nt msdos))
   "If non-nil, remove control-Ms from output."
   :group 'net-utils
   :type  'boolean)
@@ -82,7 +81,7 @@
 ;; On GNU/Linux and Irix, the system's ping program seems to send packets
 ;; indefinitely unless told otherwise
 (defcustom ping-program-options
-  (and (memq system-type (list 'linux 'gnu/linux 'irix))
+  (and (memq system-type '(gnu/linux irix))
        (list "-c" "4"))
   "Options for the ping program.
 These options can be used to limit how many ICMP packets are emitted."
@@ -889,5 +888,4 @@ from SEARCH-STRING.  With argument, prompt for whois server."
 
 (provide 'net-utils)
 
-;; arch-tag: 97119e91-9edb-4376-838b-bf7058fa1314
 ;;; net-utils.el ends here